Maximal-exponent factors in strings
نویسندگان
چکیده
The exponent of a string is the quotient of its length over its smallest period. The exponent and the period of a string can be computed in time proportional to the string length. We design an algorithm to compute the maximal exponent of all factors of an overlap-free string. Our algorithm runs in lineartime on a fixed-size alphabet, while a naive solution of the question would run in cubic time. The solution for non overlap-free strings derives from algorithms to compute all maximal repetitions, also called runs, occurring in the string. We also show there is a linear number of occurrences of maximal-exponent factors in an overlap-free string. Their maximal number lies between 0.66n and 2.25n in a string of length n. The algorithm can additionally locate all of them in linear time.
منابع مشابه
Efficient computation of maximal anti-exponent in palindrome-free strings
A palindrome is a string x = a1 · · · an which is equal to its reversal x̃ = an · · · a1. We consider gapped palindromes which are strings of the form uvũ, where u, v are strings, |v| ≥ 2, and ũ is the reversal of u. Replicating the standard notion of string exponent, we define the antiexponent of a gapped palindrome uvũ as the quotient of |uvũ| by |uv|. To get an efficient computation of maxima...
متن کاملNumber of Occurrences of powers in Strings
We show a Θ(n log n) bound on the maximal number of occurrences of primitively-rooted k-th powers occurring in a string of length n for any integer k, k ≥ 2. We also show a Θ(n) bound on the maximal number of primitively-rooted powers with fractional exponent e, 1 < e < 2, occurring in a string of length n. This result holds obviously for their maximal number of occurrences. The first result co...
متن کاملOptimal searching of gapped repeats in a word
Following (Kolpakov et al., 2013; Gawrychowski and Manea, 2015), we continue the study of α-gapped repeats in strings, defined as factors uvu with |uv| ≤ α|u|. Our main result is the O(αn) bound on the number of maximal α-gapped repeats in a string of length n, previously proved to be O(α2n) in (Kolpakov et al., 2013). For a closely related notion of maximal δ-subrepetition (maximal factors of ...
متن کاملOptimal Bounds for Computing α-gapped Repeats
Following (Kolpakov et al., 2013; Gawrychowski and Manea, 2015), we continue the study of α-gapped repeats in strings, defined as factors uvu with |uv| ≤ α|u|. Our main result is the O(αn) bound on the number of maximal α-gapped repeats in a string of length n, previously proved to be O(αn) in (Kolpakov et al., 2013). For a closely related notion of maximal δ-subrepetition (maximal factors of e...
متن کاملAverage Value of Sum of Exponents of Runs in Strings
A substring w[i..j] in w is called a repetition of period p if s[k] = s[k + p] for any i ≤ k ≤ j − p. Especially, a maximal repetition, which cannot be extended neither to left nor to right, is called a run. The ratio of the length of the run to its period, i.e. j−i+1 p , is called an exponent. The sum of exponents of runs in a string is of interest. The maximal value of the sum is still unknow...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2013